file(GLOB HEADERS "include/steem/plugins/block_data_export/*.hpp")

add_library( block_data_export_plugin
             block_data_export_plugin.cpp
             ${HEADERS}
           )

target_link_libraries( block_data_export_plugin chain_plugin steem_chain steem_protocol )
target_include_directories( block_data_export_plugin
                            PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" )

if( CLANG_TIDY_EXE )
   set_target_properties(
      block_data_export_plugin PROPERTIES
      CXX_CLANG_TIDY "${DO_CLANG_TIDY}"
   )
endif( CLANG_TIDY_EXE )

install( TARGETS
   block_data_export_plugin

   RUNTIME DESTINATION bin
   LIBRARY DESTINATION lib
   ARCHIVE DESTINATION lib
)
